﻿using Microsoft.SharePoint.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Albatross.SharePoint.Explorer.ViewModels {
	public class RecycleBinItemViewModel : ClientObjectViewModel {
		public RecycleBinItemViewModel(ClientContext context, string name, RecycleBinItem item)
			: base(context, name, item) {
		}

		public RecycleBinItem RecycleBinItem { get { return (RecycleBinItem)ClientObject; } }
		public override string GetTreeItemTitle() {
			if (Name == string.Empty) {
				return RecycleBinItem.LeafName;
			} else {
				return Name;
			}
		}

		public override string GetContentTitle() {
			return RecycleBinItem.LeafName;
		}
	}
}
